hysop.operator.reductions module

class hysop.operator.reductions.ParameterReduction(input_parameters, output_parameter, operation, dtype=None, quiet=False, **kwds)[source]

Bases: HostOperatorBase

Perform an elementwise reduction operation accross multiple input parameters of the same shape.

Create the common attributes of all host operators.

All input and output variable topologies should be of kind Backend.HOST and share the same HostEnvironment.

apply(**kwds)

Abstract method that should be implemented. Applies this node (operator, computational graph operator…).

property reduced_parameter
classmethod supports_mpi()[source]

Return True if this operator was implemented to support multiple mpi processes.